package com.jhgsys.internal.hazard.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.jhgsys.internal.common.entity.BaseEntity;

import com.fasterxml.jackson.annotation.JsonFormat;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;


/**
 *  Entity
 *
 * @author zhangwei
 * @date 2024-09-13 10:11:20
 */
@Data
@TableName("accident_report_survey_user")
public class AccidentReportSurveyUser extends BaseEntity implements Serializable {

    /**
     * 主键
     */
    @TableId(value = "report_survey_user_id", type = IdType.ASSIGN_UUID)
    @Size(max = 32, message = "{noMoreThan}")
    private String reportSurveyUserId;

    /**
     * 公司Id
     */
    @TableField("tenant_id")
    @NotBlank(message = "{required}")
    @Size(max = 32, message = "{noMoreThan}")
    private String tenantId;

    /**
     * 事故报告Id
     */
    @TableField("report_id")
    @NotBlank(message = "{required}")
    @Size(max = 32, message = "{noMoreThan}")
    private String reportId;

    /**
     * 职能名称
     */
    @TableField("duty_name")
    @NotBlank(message = "{required}")
    @Size(max = 150, message = "{noMoreThan}")
    private String dutyName;

    /**
     * 调查人Id
     */
    @TableField("survey_user_id")
    @NotBlank(message = "{required}")
    @Size(max = 32, message = "{noMoreThan}")
    private String surveyUserId;

    /**
     * 调查人工号
     */
    @TableField("survey_user_no")
    @NotBlank(message = "{required}")
    @Size(max = 255, message = "{noMoreThan}")
    private String surveyUserNo;

    /**
     * 调查人姓名
     */
    @TableField("survey_real_name")
    @NotBlank(message = "{required}")
    @Size(max = 150, message = "{noMoreThan}")
    private String surveyRealName;

    /**
     * 调查人部门Id
     */
    @TableField("survey_dept_id")
    @NotBlank(message = "{required}")
    @Size(max = 32, message = "{noMoreThan}")
    private String surveyDeptId;

    /**
     * 调查人部门
     */
    @TableField("survey_dept_name")
    @NotBlank(message = "{required}")
    @Size(max = 150, message = "{noMoreThan}")
    private String surveyDeptName;

    /**
     * 调查人岗位Id
     */
    @TableField("survey_post_id")
    @Size(max = 255, message = "{noMoreThan}")
    private String surveyPostId;

    /**
     * 调查人岗位
     */
    @TableField("survey_post_name")
    @Size(max = 255, message = "{noMoreThan}")
    private String surveyPostName;

}